<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#loginForm").submit(function(){
			if($(":text[name=id]").val()==""){
				alert("아이디를 입력하세요!");
				return false;
			} else if($(":password[name=password]").val()==""){
				alert("비밀번호를 입력하세요!");
				return false;
			}
		})
	})
</script>

<body>
<form action="loginconsumer.do" method="post" id="loginForm">
ID : <input type="text" name="id">
PASSWORD : <input type="password" name="password">
<input type="submit" value="Login">
</form>
</body>
